package com.zc.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import com.zc.domain.Item;

@Repository
public interface IPresDao {
	@Select("SELECT TimeStamp,yl FROM ${tableName} LIMIT 24;")
	@Results({
		@Result(column = "timeStamp",property = "timeStamp"),
		@Result(column = "yl",property = "data")
	})
	List<Item> getPressure(@Param("tableName") String tableName);
}
